package org.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 银行卡表
    */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "bank_card")
public class BankCard {
    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.INPUT)
    private Integer id;

    /**
     * 银行卡号
     */
    @TableField(value = "account")
    private String account;

    /**
     * 银行卡密码
     */
    @TableField(value = "`password`")
    private String password;

    /**
     * 开户金额
     */
    @TableField(value = "opening_amount")
    private Double openingAmount;

    /**
     * 客户编号
     */
    @TableField(value = "customer_no")
    private Integer customerNo;

    /**
     * 开卡时间
     */
    @TableField(value = "createtime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createtime;

    /**
     * 余额
     */
    @TableField(value = "balance")
    private Double balance;

    /**
     * 客户名称
     */
    @TableField(value = "customer_name")
    private String customerName;
}